﻿/*
 *    Copyright © 2012 FPInst authors
 *
 *      This file is part of the FPInst project 
 *      (for more information, see: http://code.google.com/p/fpinst/).
 *
 *    FPInst is free software: you can redistribute it and/or modify
 *    it under the terms of the GNU General Public License as published by
 *    the Free Software Foundation, either version 3 of the License, or
 *    (at your option) any later version.
 *
 *    FPInst is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *    GNU General Public License for more details.
 *
 *    You should have received a copy of the GNU General Public License
 *    along with FPInst.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using Cellum.Tools;
using System.Drawing.Drawing2D;
using System.Diagnostics;


namespace RotSw
{
    public partial class RotSwControl : Control
    {
        private int grippetals = 10;
        private int gripthickness = 5;
        private int lightangle = 45;
        private int lightoffset = 10;
        private Color gripdarkcolor = Color.Black;
        private Color griplightcolor = Color.LightGray;
        private Color topdarkcolor = Color.LightGray;
        private Color toplightcolor = Color.White;
        private Color markdarkcolor = Color.Black;
        private Color marklightcolor = Color.Red;
        private int marklength = 20;
        private int markwidth = 6;
        private float value = 0;
        private int minvalue = 0;
        private int maxvalue = 100;
        private int ratio = 100;
        private int stepbig = 100;
        private int step = 10;
        private int stepsmall = 1;

        public int Stepbig
        {
            get { return stepbig; }
            set { stepbig = value; }
        }

        public int Step
        {
            get { return step; }
            set { step = value; }
        }

        public int Stepsmall
        {
            get { return stepsmall; }
            set { stepsmall = value; }
        }

        public int Minvalue
        {
            get { return minvalue; }
            set { minvalue = value; }
        }

        public int Maxvalue
        {
            get { return maxvalue; }
            set { maxvalue = value; }
        }

        public int Ratio
        {
            get { return ratio; }
            set { ratio = value; }
        }

        public int Markwidth
        {
            get { return markwidth; }
            set { markwidth = value; }
        }

        public int Marklength
        {
            get { return marklength; }
            set { marklength = value; }
        }
        public Color Marklightcolor
        {
            get { return marklightcolor; }
            set { marklightcolor = value; }
        }
        public Color Markdarkcolor
        {
            get { return markdarkcolor; }
            set { markdarkcolor = value; }
        }
        public Color Toplightcolor
        {
            get { return toplightcolor; }
            set { toplightcolor = value; }
        }
        public Color Topdarkcolor
        {
            get { return topdarkcolor; }
            set { topdarkcolor = value; }
        }

        public Color Griplightcolor
        {
            get { return griplightcolor; }
            set { griplightcolor = value; }
        }

        public Color Gripdarkcolor
        {
            get { return gripdarkcolor; }
            set { gripdarkcolor = value; }
        }
        public int Lightoffset
        {
            get { return lightoffset; }
            set { lightoffset = value; }
        }

        public int Lightangle
        {
            get { return lightangle; }
            set { lightangle = value; }
        }

        public int Gripthickness
        {
            get { return gripthickness; }
            set { gripthickness = value; this.Invalidate(); }
        }

        public int Grippetals
        {
            get { return grippetals; }
            set { grippetals = value; }
        }

    }
}